// 员工详情卡片
.employeeCard {
    position: relative;
    display: flex;
    background-color: #fff;

    .employeeAvatar {
        width: 66px;
        margin-right: 20px;
    }
    .employeeContent {
        flex: 1;

        .employeeName {
            display: inline-block;
            line-height: 24px;
            font-weight: bold;
            font-size: 16px;
            color: #000;
            margin-bottom: 4px;
            small {
                font-size: 14px;
                color: #999;
            }
        }
        .employeeMeta {
            margin-bottom: 6px;
            color: #666;
            font-size: 12px;
            line-height: 18px;
        }
        .employeeMetaItem {
            display: inline-block;
            margin: 0 10px;
            &:first-child {
                margin-left: 0;
            }
        }
    }
    .employeeControls {
        position: absolute;
        top: 0;
        right: 0;
        text-align: right;
        width: 350px;
        line-height: 30px;
        height: 30px;

        .employeeControlsItem {
            display: inline-block;
            margin-left: 12px;
            font-size: 16px;
            line-height: 24px;
            width: 24px;
            height: 24px;
            text-align: center;
            color: #666;
            border-radius: 4px;
            border: 1px solid #ccc;

            &:not(.employeeControlsItemDisabled):hover {
                color: #ffb957;
                border: 1px solid #ffb957;
                cursor: pointer;
            }
        }

        .employeeControlsItemDisabled {
            color: #ccc;
            border: 1px solid #ccc;
            cursor: default;
        }
    }
    .employeeDays {
        position: absolute;
        bottom: 0;
        right: 0;
        strong {
            font-size: 36px;
            font-weight: bold;
            color: #ffa22d;
        }
    }
}

.iconButton {
    margin: 0 5px;
    cursor: pointer;
    font-size: 22px;

    &[disabled] {
        pointer-events: none;
        color: rgba(0, 0, 0, 0.25);
        cursor: not-allowed;
    }

    &:hover {
        color: #ffa22d;
    }

    &.delect:hover {
        color: rgba(255, 0, 0, 0.85);
    }
}

.codeModal {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;

    :global {
        .ant-modal-body {
            text-align: center;
        }
    }

    .qrcode {
        width: 120px;
        display: inline-block;
        text-align: center;
        vertical-align: top;
        margin-left: 24px;

        .code {
            display: inline-block;
            border-radius: 8px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            background: #fff;
            text-align: center;
            padding: 10px;

            canvas {
                width: 100px !important;
                height: 100px !important;
            }
        }

        .qrcodeP {
            font-size: 12px;
            color: rgba(0, 0, 0, 0.65);
        }

        .qrcodeDown {
            font-size: 12px;
        }
    }
}
.businessCard {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 320px;
    height: 190px;
    background: url('~@/assets/businessCard/businessCard.png') no-repeat center;
    color: #fff;
    background-size: 100% 100%;
    padding: 15px 15px 65px 15px;

    .cardTop {
        display: flex;
        align-content: space-between;
        align-items: center;

        .info {
            text-align: left;
            flex: 2;

            b {
                font-size: 20px;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                overflow: hidden;
                font-weight: 600;
                line-height: 24px;
                max-height: 48px;
                text-overflow: ellipsis;
                word-break: break-all;
                margin-bottom: 6px;
            }

            p {
                font-size: 14px;
                max-height: 36px;
                line-height: 18px;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                overflow: hidden;
                text-overflow: ellipsis;
                margin: 2px 0 0 0;
                word-break: break-all;
                font-weight: 400;
                color: rgba(255, 255, 255, 0.65);
            }
        }

        img {
            width: 50px;
            height: 50px;
            margin-left: 16px;
            border: 1px solid #fff;
            border-radius: 100%;
            object-fit: cover;
            background: #fff;
            flex: 0 0 50px;
        }
    }

    .footer {
        position: absolute;
        left: 15px;
        bottom: 10px;
        right: 15px;
        font-size: 14px;

        span {
            display: flex;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;

            &:last-child {
                margin-right: 0;
            }
        }

        i {
            vertical-align: middle;
            margin-right: 8px;
        }
    }
}
